package com.linkage.educloud.ah.mvp.contract;

import com.linkage.educloud.ah.bean.AppDetail;
import com.linkage.educloud.ah.http.Method;
import com.linkage.educloud.ah.mvp.ABasicPresenter;
import com.linkage.educloud.ah.mvp.IBasicView;
import com.linkage.educloud.ah.mvp.ICommonModel;
import com.zhouyou.http.model.HttpParams;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by Mr'Tang on 2018/12/24.
 */

public interface IAppDetailContract {
    interface IView extends IBasicView {
        void initDate(final List<AppDetail> list);

        void update();
    }

    abstract class IPresenter<T extends IBasicView> extends ABasicPresenter {
        public IPresenter(T iView) {
            super(iView);
        }

        public abstract void getAppDetails(String id);

        public abstract void statisticsData(int desid);

        public abstract void companyAppGrantNew(int id, String recommend_code, int type, String service_id);
    }

    interface IModel extends ICommonModel {
        Observable request(String url, Method method, boolean isToken, HttpParams params);
    }
}
